class Link < ActiveRecord::Base
  belongs_to :itself, :foreign_key => :element_id, :class_name => "Element"
  belongs_to :otherselfs, :foreign_key => :related_id, :class_name => "Element"
  
  TYPE_STRING     = [['含む(1->2)',   1],
                     ['含む(2->1)',   2],
                     ['同じ',         3],
                     ['関連有り',     4]]
end
